<?php
class apiAction extends baseAction{
	
	public function __construct($tableName){
		parent::__construct();
	}
	function like(){
		$rs = new ju_like();
		$like = $rs->select("select user_id from ju_like where user_id='".$_REQUEST['tracknick']."'");
		if($like[0][user_id]!=''){
			$data = array(
				'item_id'=>$_GET['item_id'],
				'user_id' =>$_REQUEST['tracknick'],
				'time'=>time()
			);
			$rs->insert($data);
		}
	}
}
?>